﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DynORM.BLLMapper
{
    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple=false, Inherited=true)]
    public class PrimaryKeyAttribute : Attribute
    {

        public PrimaryKeyAttribute(string fieldName, int ord)
        {
            this.FieldName = fieldName;
            this.Ord = ord;
        }
        
        public string FieldName { get; set; }
        public int Ord { get; set; }
    }
}
